const { defineConfig } = require('@vue/cli-service')
const defaultSettings = require('./src/settings.js')
const path = require('path')
const name = defaultSettings.siteTitl
function resolve(dir) {
    return path.join(__dirname, dir)
}


module.exports = defineConfig({
  publicPath: "./",
  outputDir: "dist",
  lintOnSave:false,
//   transpileDependencies: true,
  productionSourceMap: false,
  devServer:{
    // host:'192.168.1.9',
    hot: false,
    // port: "8085",
    open: false, 
    // overlay: {
    //   warnings: false,
    //   errors: false,
    // }
  },
  configureWebpack: {
    name: name,
    resolve: {
       alias: {
        '@': resolve('src')
       }
    },
    plugins:[]
  },
})
